package mest.service.Modeling.Impl;

import mest.dao.Modeling.IsaveFileDao;
import mest.entity.save_file;
import mest.service.Modeling.IsaveFileService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Description
 * @auther Machenike
 * @create 2019-11-16 1:53
 */
@Service
public class saveFileServiceImpl implements IsaveFileService {

    @Resource
    private IsaveFileDao isfd;

    @Override
    public int insertsaveFile(save_file sf) {
        try {
            return isfd.insertsaveFile(sf);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return 0;
    }

    @Override
    public int selectCount() {
        return isfd.selectCount();
    }

    @Override
    public List<save_file> findSaveFilePage(int index, int pageSize) {
        return isfd.findSaveFilePage((index-1)*pageSize,pageSize);
    }
}
